package models

import "gorm.io/gorm"

type RoomUser struct {
	gorm.Model
	Rid uint `gorm:"column:rid;type:int(11);not null" json:"rid"` //房间ID
	Uid uint `gorm:"column:uid;type:int(11);not null" json:"uid"` //用户ID
}

func (table *RoomUser) TableName() string {
	return "room_user" //指定表名 否则会取RoomBasic
}
